<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
    <title>添加用户</title>
</head>

<body>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <form id="registerForm" action="${ctx}/register" method="post" class="form-horizontal">
                <fieldset>
                    <legend>
                        <small>添加员工</small>
                    </legend>
                    <div class="form-group">
                        <label for="username" class="col-sm-2 control-label">用户名:</label>
                        <div class="col-sm-3">
                            <input type="text" id="username" name="username" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="password" class="col-sm-2 control-label">密码:</label>
                        <div class="col-sm-3">
                            <input type="password" id="password" name="password" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="confirmPassword" class="col-sm-2 control-label">确认密码:</label>
                        <div class="col-sm-3">
                            <input type="password" id="confirmPassword" name="confirmPassword" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">姓名:</label>
                        <div class="col-sm-3">
                            <input type="text" id="name" name="name" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="sex" class="col-sm-2 control-label">姓名:</label>
                        <div class="col-sm-3">
                            <select type="text" id="sex" name="sex" class="form-control">
                                <option value="男" selected="selected">男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="phone" class="col-sm-2 control-label">手机:</label>
                        <div class="col-sm-3">
                            <input type="text" id="phone" name="phone" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="col-sm-2 control-label">职称:</label>
                        <div class="col-sm-3">
                            <input type="text" id="title" name="title" class="form-control"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">角色:</label>
                        <div class="col-sm-3">
                            <label class="checkbox-inline"><input type="checkbox" id="roles_boss" name="roles" value="boss" />老板</label>
                            <label class="checkbox-inline"><input type="checkbox" id="roles_admin" name="roles" value="admin" />管理员</label>
                            <label class="checkbox-inline"><input type="checkbox" id="roles_manager" name="roles" value="manager" />经理</label>
                            <label class="checkbox-inline"><input type="checkbox" id="roles_user" name="roles" value="user" />用户</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-3">
                            <input id="submit_btn" type="submit" value="提交" class="btn btn-primary"/>&nbsp;
                            <input id="reset_btn" type="reset" value="清空" class="btn btn-warning"/>
                        </div>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>
</div>
</body>
</html>
